package edu.cebanc.spring.biblioteca.services;

import java.util.List;

import edu.cebanc.spring.biblioteca.bean.AuthorBean;
import edu.cebanc.spring.biblioteca.bean.GenreBean;
import edu.cebanc.spring.biblioteca.bean.LanguageBean;
import edu.cebanc.spring.biblioteca.bean.PublisherBean;

public interface GeneralDataService {
	
	public void saveAuthor(AuthorBean author);
	public void saveLanguage(LanguageBean lang);
	public void saveGenre(GenreBean genre);
	public void savePublisher(PublisherBean pub);
		
	public List<AuthorBean> listAuthors();
	public List<LanguageBean> listLanguages();
	public List<GenreBean> listGenres();
	public List<PublisherBean> listPublishers();

	public AuthorBean loadAuthor(String id);
	public LanguageBean loadLanguage(String id);
	public GenreBean loadGenre(String id);
	public PublisherBean loadPublisher(String id);
	
	public void deleteAuthor(String id);
	public void deleteLanguage(String id);
	public void deleteGenre(String id);
	public void deletePublisher(String id);
	
}
